﻿using System;
using System.Collections.Generic;
using System.Text;
using CTEM.Controllers.Global;
using CTEM.Controllers.Global;

namespace CTEM.Models
{
    public class CS_SubcontractorDTO
    {
        public long SubcontractorID { get; set; }
        public string SubcontractorName { get; set; }
        public string SubcontractorAddress { get; set; }
        public string PhoneNumber { get; set; }
        public int NumberContract { get; set; }
        public long TotalValueContract { get; set; }
        public bool IsActive { get; set; }
        public bool IsDelete { get; set; }
        public string CreatedBy { get; set; }
        public DateTime CreatedDate { get; set; }
        public string UpdatedBy { get; set; }
        public DateTime LastUpdated { get; set; }

        public HistoryLevel History { get; set; }

        public CS_SubcontractorDTO()
        {
            SubcontractorName = Constants.EMPTY_TEXT;
            SubcontractorAddress = Constants.EMPTY_TEXT;
            PhoneNumber = Constants.EMPTY_TEXT;
            NumberContract = 0;
            TotalValueContract = 0;
            IsActive = true;
            IsDelete = false;
            CreatedBy = Global.CurrentUser.Username;
            CreatedDate = DateTime.Today;
            UpdatedBy = Global.CurrentUser.Username;
            LastUpdated = DateTime.Today;
        }
    }
}
